#BIN = .
BIN = ../lib
INC = -I../include/

LIB_INC = -L/home/w/lib64/

LIBS = 

OBJS =  time_recorder.o

TGTS = $(BIN)/libtime_recorder.so
#TGTS = $(BIN)/test

CXXFLAGS = -g -Wall -fPIC -shared -DLINUX
#CXXFLAGS = -g -Wall -fPIC -D_UTEST__

CFLAGS = -g -DTRACE_TIME -Wall -fPIC -D_UTEST__

CC = g++

.PHONY  : all clean 
all: $(TGTS)

.cpp.o:
	$(CC) $(CFLAGS) -c $< -o $@ $(INC)

$(TGTS): $(OBJS) 
	$(CC) $(CXXFLAGS) $(OBJS) -o $(TGTS) $(INC) $(LIB_INC) $(LIBS)

clean:
	$(RM) $(OBJS) $(TGTS)

